home *** CD-ROM | disk | FTP | other *** search
- on getDynamicSlot
- return member(the number of castMembers of castLib "dynamic" + 1, "dynamic")
- end
-
- on Publish
- repeat with i = 1 to the number of castMembers of castLib "dynamic"
- member(i, "dynamic").erase()
- end repeat
- member("screenshot").image = image(1, 1, 32)
- member("desertbg").image = image(1, 1, 32)
- end
-
- on AllCaps tString
- tChars = "abcdefghijklmnopqrstuvwxyz"
- repeat with i = 1 to tString.char.count
- if tChars contains tString.char[i] then
- if charToNum(tString.char[i]) >= 97 then
- return 0
- end if
- end if
- end repeat
- return 1
- end
-
- on debugModus me
- if the runMode contains "author" then
- return 1
- else
- return 0
- end if
- end
-
- on alterWhites tMember
- tImage = tMember.image
- repeat with x = 0 to tImage.width - 1
- repeat with y = 0 to tImage.height - 1
- if tImage.getPixel(x, y) = rgb(255, 255, 255) then
- tImage.setPixel(x, y, rgb(254, 255, 255))
- end if
- end repeat
- end repeat
- tMember.image = tImage
- end
-
- on showAll
- repeat with i = 1 to 500
- sprite(i).visible = 1
- end repeat
- end
-